package site.zbox.tool.swing.xml.component;

import javax.swing.JComponent;

import org.dom4j.Element;

import site.zbox.tool.lang.Version;
import site.zbox.tool.swing.xml.IComponentParser;

@Version("2021.08.12")
public class NullComponentParser implements IComponentParser {
    public static final NullComponentParser INSTANCE = new NullComponentParser();

    private NullComponentParser() {
    }

    @Override
    public String name() {
        return "Null";
    }

    @Override
    public JComponent parse(Element element) {
        return null;
    }
}
